home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 42 / Amiga Format AFCD42 (Issue 126, Aug 1999).iso / -serious- / programming / amos / amoslist-0499 / amoslist / 000133_nobody_Sun Apr 18 09:09:54 1999.msg < prev    next >
Internet Message Format  |  1999-05-17  |  3KB

  1. Received: from onelist.com (pop.onelist.com [209.207.164.207])
  2.     by osf1.gmu.edu (8.8.8/8.8.8) with SMTP id JAA08175
  3.     for <mcox4@osf1.gmu.edu>; Sun, 18 Apr 1999 09:09:54 -0400 (EDT)
  4. Received: (qmail 14987 invoked by alias); 18 Apr 1999 12:30:56 -0000
  5. Received: (qmail 14982 invoked from network); 18 Apr 1999 12:30:55 -0000
  6. Received: from unknown (HELO mail.enterprise.net) (194.72.192.18) by pop.onelist.com with SMTP; 18 Apr 1999 12:30:55 -0000
  7. Received: from enterprise.net (andrewcrowe@max03-072.enterprise.net [194.72.196.72]) by mail.enterprise.net (8.8.5/8.8.5) with SMTP id OAA27283 for <amos-list@onelist.com>; Sun, 18 Apr 1999 14:09:49 +0100 (GMT/BST)
  8. From: Andrew Crowe <andrewcrowe@enterprise.net>
  9. To: amos-list@onelist.com
  10. Date: Sun, 18 Apr 1999 14:08:50 +0000
  11. Message-ID: <yam7777.2502.1197592256@mail.enterprise.net>
  12. In-Reply-To: <000d01be897e$8d3507a0$262c63c3@default>
  13. X-Mailer: YAM 2.0Preview7 [020] - Amiga Mailer by Marcel Beck - http://www.yam.ch
  14. Mailing-List: list amos-list@onelist.com; contact amos-list-owner@onelist.com
  15. Delivered-To: mailing list amos-list@onelist.com
  16. Precedence: bulk
  17. List-Unsubscribe: <mailto:amos-list-unsubscribe@ONElist.com>
  18. Reply-to: amos-list@onelist.com
  19. Mime-Version: 1.0
  20. Content-Type: text/plain
  21. Subject: [amos-list] Re: Memory Banks Help !!!!
  22. Status: O
  23. X-Status: 
  24.  
  25. From: Andrew Crowe <andrewcrowe@enterprise.net>
  26.  
  27. Hi Everybody,
  28.  
  29. >                        Just a few questions if anyone can help me.. I am
  30. > familiar with the use of "Banks " with regards to Bobs, Pics, Sounds etc.
  31. > But with regards to Data, I haven`t a clue. I write a lot of Progs with
  32. > the same source codes common to all. I know I can save them as a Block or
  33. > as Asc files, but what I would like to know, is there a way of putting
  34. > them in a Bank to recall them as and when I want them, such as Bobs etc.?
  35. > I would be grateful for help in this matter, IN PLAIN LANGUAGE PLEASE.
  36. >                    Thanks
  37.  
  38.    Nope, you can't put amos code into banks. (unless its macine code, but I
  39. wouldn't worry about that?)
  40.  
  41.    Whats wrong with using subroutines or procedures though?
  42.  
  43.  
  44.  
  45. you could have:
  46.  
  47.  
  48. do
  49.  
  50.    gosub checkjoystick
  51.  
  52. loop
  53.  
  54.  
  55.  
  56. checkjoystick:
  57.  
  58. J1=Joy(0)
  59.  
  60. J2=Joy(1)
  61.  
  62. Return
  63.  
  64.  
  65.  
  66. What that would do is where you call Gosub, it goes to that line, but when
  67. you call return it goes back to where you said gosub, so you can use that
  68. code from anywhere.
  69.  
  70.  
  71. See ya.
  72. -- 
  73.        Manta Soft  -  Amiga programing & web page designing
  74.    Http://members.tripod.com/~mantasoft/      ICQ: 21829166
  75.      Homepage updated 27/3/99 --- New Bomberman clone started
  76.   - ------------------- Quote of the day: -------------------- -
  77. Be careful of reading health books, you might die of a misprint.
  78. -- Mark Twain
  79.  
  80.  
  81. ------------------------------------------------------------------------
  82. Looking for the perfect gift for a friend?
  83. http://www.ONElist.com
  84. Tell them about ONElist's 115,000 free e-mail communities!
  85. ------------------------------------------------------------------------
  86. Official AMOS WWW: http://members.xoom.com/AmosFactory/front.html